package com.example.api.service;








import com.example.api.bean.Book;

import java.io.Serializable;
import java.util.List;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.smilebookshop.server.service
 * @author: 红雪（hongxue@maihaoche.com）
 * @date: 2019/1/21 5:25 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 * 注意：本内容仅限于卖好车内部传阅，禁止外泄以及用于其他的商业项目
 */

public interface BookService extends Serializable {
    List<Book> listAllBooks();

    Book getById(int id);

    Book updateBook(Book book);

    int deleteBook(int i);

    Book  insertBook(Book book);
}
